cmake_minimum_required(VERSION 3.16)
project(VBoxLayoutItems_DragEvent LANGUAGES CXX)

include(qt.cmake)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Xml)
find_package(Qt${QT_VERSION_MAJOR}
    COMPONENTS
        Core
        Gui
        Widgets
        Xml
)
qt_standard_project_setup()


aux_source_directory(./ PROJECT_SOURCES)

qt_add_executable(VBoxLayoutItems_DragEvent ${PROJECT_SOURCES})

set_target_properties(VBoxLayoutItems_DragEvent
    PROPERTIES
        WIN32_EXECUTABLE TRUE
)

target_link_libraries(VBoxLayoutItems_DragEvent
    PUBLIC
        Qt::Core
        Qt::Gui
        Qt::Widgets
        Qt::Xml
)
